package com.jvup.gameshow.fragment;

import android.os.Bundle;

import com.jvup.common.inject.EventControllerInjector;
import com.jvup.gameshow.R;
import com.jvup.common.constant.Navigation;
import com.jvup.common.support.base.BaseFragment;
import com.jvup.gameshow.controller.UserCenterController;
import com.jvup.gameshow.databinding.FragmentUserCenterBinding;
import com.qire.antscore.annotation.RouteMapping;
import com.qire.antsrouter.inject.Autowired;

@RouteMapping(path = Navigation.Fragment.UserCenterFragment)
public class UserCenterFragment extends BaseFragment<FragmentUserCenterBinding> {

    @Autowired(injector = EventControllerInjector.class)
    UserCenterController controller;

    public static UserCenterFragment newInstance() {
        Bundle args = new Bundle();
        UserCenterFragment fragment = new UserCenterFragment();
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public int layoutRid() {
        return R.layout.fragment_user_center;
    }

//    @Nullable
//    @Override
//    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
//        View root = super.onCreateView(inflater, container, savedInstanceState);
//        viewDataBinder().setVariable(BR.homeEventController,controller);
//        return root;
//    }
}
